package dm_pm;

import java.util.Vector;

/**
 * This class represents a single logical processor and the set of
 * tasks that have been partitioned to run on it.
 * 
 * @author Tom Deering
 * @author Dossay Oryspayev
 * 
 */
public class Processor {
	/**Used by the class to assign IDs to processors*/
	private static long idCount = 0;
	/**The ID of this processor*/
	private long id;
	/**A list of tasks that have been partitioned to this processor*/
	public Vector<Instance> instanceQueue;
	
    /**
	 * Creates a new, empty processor
	 */
	public Processor(){
		this.id = idCount++;
		this.instanceQueue = new Vector<Instance>();		
	}
		
	public String toString() {
		return "Processor = [id: "+this.id+"]";
	}
}
